#!/usr/bin/env python
# -*- coding:utf-8 -*-

'''
Author      : lixx
Created Time: Sat Sep 14 08:24:35 2024
File Name   : a.py
Description : 
'''

deduplication = lambda lst: [dict(d) for d in list(set(tuple(d.items()) for d in lst))]
lst = [{'a': 1, 'b': 2}, {'a': 1, 'b': 2}, {'a': 3, 'b': 4}]
print(func1(lst))
lst = list(set(tuple(d.items()) for d in lst))
print(lst)
lst = [dict(d) for d in lst]
print(lst)
